<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../system/css/win7.css">
<link rel="stylesheet" type="text/css" href="../system/desktop/desktop.css">
<link rel="stylesheet" type="text/css" href="../system/components/menu/menu.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Insert title here</title>
<style type="text/css">
body,html{
width:100%;
height:100%;
margin:0px;
overflow:hidden;
}
</style>
</head>
<body>
</body>
<script type="text/javascript">
var realPath = "<%=request.getContextPath()%>";
var realpath =realPath;
</script>
<script type="text/javascript" src="../system/util/sys.js"></script>
<script type="text/javascript" src="../system/third/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../system/components/xtree/xtree.js"></script>
<script type="text/javascript" src="../system/components/dialog/dialog.js"></script>
<script type="text/javascript" src="../system/components/menu/xmenu.js"></script>
<script type="text/javascript" src="../system/desktop/desktop.js"></script>
<script>
//$(document.body).bind("mousemove",function(){
	//console.log(123);
	//});
	//$(document.body).mousemove(function(){
	//	console.log(123);
	//});
	window.onload = function(){
var desktop = new DeskTop();
desktop.addItem({
	name:"我的电脑",
	img : "../system/images/mycomputer.ico",
	left:10,
	top:10
});
desktop.addItem({
	name:"回收站",
	img : "../system/images/txt.gif",
	left:10,
	top:10
});
	var menu =new XMenu();
	var item0 = menu.addItem("刷新",null,"../system/images/refresh.gif");
	var subMenu = item0.addSubMenu();
	subMenu.addItem(3333,null,null,{id:444,type:"radio"});
	var item333=subMenu.addItem(4444,null,null,{id:444,type:"radio"});
	item333.setSelected(true);
	var item1 = menu.addItem(111,null,null,{id:444,type:"radio"});
	var item2 = menu.addItem(222,null,null,{id:444,type:"radio"});
	item1.setSelected(true);
	menu.addItem("--");
	menu.addItem(333,null,null,{id:555,type:"checkbox"});
	menu.addItem(444,null,null,{id:555,type:"checkbox"});
	menu.addItem(555,null,null,{id:555,type:"checkbox"});
	menu.addItem(666,null,null,{id:555,type:"checkbox"});
desktop.setOnTopContextMenu(function(evt){
	var self = this;
	menu.showAtCursor();
});
	var menu1 =new XMenu();
	menu1.addItem("123");
desktop.setOnBottomContextMenu(function(evt,self){
	menu1.showAtCursor();
});
	}
</script>
</html>